
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>DAY03 回忆式笔记 · JavaSE笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="zh">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="DAY03 回忆式笔记.html" />
    
    
    <link rel="prev" href="DAY02 回忆式笔记.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./#向导">
            
                    
                    向导
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="./">
            
                <a href="./#技巧&工具">
            
                    
                    技巧&工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="./">
            
                <a href="./#基础部分">
            
                    
                    基础部分
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#day01-java编程基础">
            
                    
                    DAY01 java编程基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#一、java语言概述">
            
                    
                    一、java语言概述
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#1-课程整体内容概述">
            
                    
                    1_ 课程整体内容概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#2-java语言概述">
            
                    
                    2_ Java语言概述
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.2.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#1、基础常识">
            
                    
                    1、基础常识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.2.1.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#11硬件（hardware）">
            
                    
                    1.1硬件（Hardware）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.1.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#12软件（software）">
            
                    
                    1.2软件（SoftWare）
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.2.1.2.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#121系统软件（operation-system）">
            
                    
                    1.2.1系统软件（Operation System）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.1.2.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#122应用软件">
            
                    
                    1.2.2应用软件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.1.3" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#13dos命令">
            
                    
                    1.3Dos命令
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.2.1.3.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#131常用dos命令command">
            
                    
                    1.3.1常用DOS命令(command)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.1.3.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#132命令的分类">
            
                    
                    1.3.2命令的分类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#3-计算机语言的发展迭代史">
            
                    
                    3_ 计算机语言的发展迭代史
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#4-java语言版本迭代概述">
            
                    
                    4_ Java语言版本迭代概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.5" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#5-java语言应用的领域">
            
                    
                    5_ Java语言应用的领域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.6" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#6-java语言的特点">
            
                    
                    6_ Java语言的特点
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.6.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#1主要特性">
            
                    
                    1.主要特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.6.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#2面向对象性">
            
                    
                    2.面向对象性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.7" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#7-java两种核心机制">
            
                    
                    7_ Java两种核心机制
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#二、开发环境的搭建（重点）">
            
                    
                    二、开发环境的搭建（重点）
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#1-jdk、jre、jvm的关系">
            
                    
                    1_ JDK、JRE、JVM的关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#2-jdk的下载、安装">
            
                    
                    2_ JDK的下载、安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.3" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#3-path环境变量的配置">
            
                    
                    3_ path环境变量的配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.3.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#1、为什么配置path环境变量？">
            
                    
                    1、为什么配置path环境变量？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.3.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#12、如何配置？">
            
                    
                    1.2、如何配置？
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#三、第一个java程序">
            
                    
                    三、第一个Java程序
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#1、开发体验—helloworld">
            
                    
                    1、开发体验—HelloWorld
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#11编写">
            
                    
                    1.1编写
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.1.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#12编译">
            
                    
                    1.2编译
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.1.3" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#13运行">
            
                    
                    1.3运行
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#2常见问题的解决">
            
                    
                    2.常见问题的解决
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.3" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#3总结第一个程序">
            
                    
                    3.总结第一个程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#四、注释与api文档">
            
                    
                    四、注释与API文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.4.1" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#1注释：comment">
            
                    
                    1.注释：Comment
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.2" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#2java-api-文档">
            
                    
                    2.Java API 文档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.3" data-path="DAY01 笔记.html">
            
                <a href="DAY01 笔记.html#3良好的编程风格">
            
                    
                    3.良好的编程风格
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#day02-数据类型到进制">
            
                    
                    DAY02 数据类型到进制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#基本数据类型">
            
                    
                    基本数据类型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#引用类型和基本类型的区别">
            
                    
                    引用类型和基本类型的区别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#浮点数为什么不精准整数是不是精准的为什么">
            
                    
                    浮点数为什么不精准整数是不是精准的为什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.3" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#强类型的好处是什么">
            
                    
                    强类型的好处是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.4" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#简要描述java中的8种数据类型">
            
                    
                    简要描述java中的8种数据类型
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#变量的使用与类型兼容性">
            
                    
                    变量的使用与类型兼容性
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#变量使用时有哪些注意事项">
            
                    
                    变量使用时有哪些注意事项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#变量赋值的兼容机制">
            
                    
                    变量赋值的兼容机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.3" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#什么是变量什么是常量什么是字面量">
            
                    
                    什么是变量什么是常量什么是字面量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.4" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#数值字面值的默认类型是什么">
            
                    
                    数值字面值的默认类型是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.5" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#编译器对变量和常量如何区别处理">
            
                    
                    编译器对变量和常量如何区别处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.6" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#为什么浮点数没有变量常量区别处理">
            
                    
                    为什么浮点数没有变量常量区别处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.7" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#数值范围从小到大的排序是什么">
            
                    
                    数值范围从小到大的排序是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.8" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#自动类型提升的主要规则数值型">
            
                    
                    自动类型提升的主要规则(数值型)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.9" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#强制类型转换">
            
                    
                    强制类型转换
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#字符与字符串">
            
                    
                    字符与字符串
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#字符型存储的究竟是什么">
            
                    
                    字符型存储的究竟是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#字符串引用类型">
            
                    
                    字符串(引用类型)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.3" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#字符串转换">
            
                    
                    字符串转换
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#进制">
            
                    
                    进制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.1" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#权值是什么各进制如何表示">
            
                    
                    权值是什么各进制如何表示
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#研究16进制的意义是什么">
            
                    
                    研究16进制的意义是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.3" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#8421法实现16进制与2进制互转">
            
                    
                    8421法实现16进制与2进制互转
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#什么是补码了解">
            
                    
                    什么是补码(了解)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.5" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#补码和-1分别解决了什么问题">
            
                    
                    补码和-1分别解决了什么问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.6" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#byte的最大值为什么是127">
            
                    
                    byte的最大值为什么是127
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#额外补充">
            
                    
                    额外补充
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#b问题">
            
                    
                    \b问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#练习">
            
                    
                    练习
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.6.1" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#练习1-打印自己的姓名和相应码值">
            
                    
                    练习1 打印自己的姓名和相应码值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.2" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#练习2-字符串拼接-打印个人信息">
            
                    
                    练习2 字符串拼接 打印个人信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.3" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#练习3-动态打印计算过程">
            
                    
                    练习3 动态打印计算过程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.4" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#练习4-16进制与2进制转10进制">
            
                    
                    练习4 16进制与2进制转10进制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.5" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#练习5-16进制和2进制互转">
            
                    
                    练习5 16进制和2进制互转
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.6" data-path="DAY02 回忆式笔记.html">
            
                <a href="DAY02 回忆式笔记.html#练习6-正负2进制转10进制数">
            
                    
                    练习6 正负2进制转10进制数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#day03-回忆式笔记">
            
                    
                    DAY03 回忆式笔记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#内存与变量机制">
            
                    
                    内存与变量机制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#地址编号是什么">
            
                    
                    地址编号是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#变量可以声明在什么位置-有什么区别">
            
                    
                    变量可以声明在什么位置 有什么区别
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#运算符">
            
                    
                    运算符
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#位运算符">
            
                    
                    位运算符
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#补充异或加密实践">
            
                    
                    补充异或加密实践
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#算术运算符">
            
                    
                    算术运算符
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.2.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#除法运算注意点">
            
                    
                    除法运算注意点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.2.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#求余运算注意点">
            
                    
                    求余运算注意点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.2.3" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#后++和前++注意点">
            
                    
                    后++和前++注意点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.2.4" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#字符串+运算注意点">
            
                    
                    字符串+运算注意点
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2.3" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#赋值运算注意点">
            
                    
                    赋值运算注意点
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.3.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#扩展操作运算符">
            
                    
                    扩展操作运算符
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2.4" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#比较运算符">
            
                    
                    比较运算符
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.4.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#为什么不能连续比较">
            
                    
                    为什么不能连续比较
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2.5" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#逻辑运算符">
            
                    
                    逻辑运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.6" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#三元运算符">
            
                    
                    三元运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.7" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#运算符优先级">
            
                    
                    运算符优先级
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#流程控制">
            
                    
                    流程控制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#什么是流程-有几种流程控制">
            
                    
                    什么是流程 有几种流程控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#分支语句1:-if-else-及其">
            
                    
                    分支语句1: if-else 及其
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.2.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#3种方式">
            
                    
                    3种方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#嵌套">
            
                    
                    嵌套
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2.3" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#无花括号语法">
            
                    
                    无花括号语法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.3.3" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#分支语句2:-switch-case">
            
                    
                    分支语句2: switch case
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.3.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#使用switch的相关规则">
            
                    
                    使用switch的相关规则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.3.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#没有break会怎么样">
            
                    
                    没有break会怎么样
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#额外补充">
            
                    
                    额外补充
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#java如何得到命令行参数">
            
                    
                    java如何得到命令行参数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习">
            
                    
                    练习
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.5.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习1-按位与,-或-,-异或运算">
            
                    
                    练习1 按位与, 或 , 异或运算
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习2-算数运算符:-自加,-自减">
            
                    
                    练习2 算数运算符: 自加, 自减
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.3" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习3-与、或、短语与和短路或">
            
                    
                    练习3 与、或、短语与和短路或
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.4" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习4-三元运算符-2数较大-3数较大">
            
                    
                    练习4 三元运算符 2数较大 3数较大
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.5" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习5-if-else-奖励小明">
            
                    
                    练习5 if else 奖励小明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.6" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习6">
            
                    
                    练习6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.7" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习7-用switch改写if语句">
            
                    
                    练习7 用switch改写if语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.8" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#练习8-用switch为输入的月份判断季节">
            
                    
                    练习8 用switch为输入的月份判断季节
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#作业">
            
                    
                    作业
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.6.1" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#作业1-将3个数字从小到大排列">
            
                    
                    作业1 将3个数字从小到大排列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6.2" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#作业2">
            
                    
                    作业2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6.3" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#作业3">
            
                    
                    作业3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6.4" data-path="DAY03 回忆式笔记.html">
            
                <a href="DAY03 回忆式笔记.html#作业4">
            
                    
                    作业4
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#day04-回忆式笔记">
            
                    
                    DAY04 回忆式笔记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#冒泡排序">
            
                    
                    冒泡排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#循环结构">
            
                    
                    循环结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.2.1" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#循环语句的功能是什么">
            
                    
                    循环语句的功能是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.2" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#循环语句的四个组成部分">
            
                    
                    循环语句的四个组成部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.3" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#while-循环">
            
                    
                    while 循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.4" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#do-while-循环">
            
                    
                    do-while 循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.5" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#while-循环结构特点">
            
                    
                    while 循环结构特点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.6" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#for-循环">
            
                    
                    for 循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.7" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#for-循环结构特点">
            
                    
                    for 循环结构特点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.8" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#for循环与if嵌套">
            
                    
                    for循环与if嵌套
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.9" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#for循环嵌套">
            
                    
                    for循环嵌套
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.10" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#for循环打印控制">
            
                    
                    for循环打印控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.11" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#for循环判断质数">
            
                    
                    for循环判断质数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#额外补充">
            
                    
                    额外补充
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.3.1" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#null-和-null-的区别是什么">
            
                    
                    NULL 和 null 的区别是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.2" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#什么是质数">
            
                    
                    什么是质数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#练习">
            
                    
                    练习
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.4.1" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#练习1-使用while循环打印矩阵">
            
                    
                    练习1 使用while循环打印矩阵
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4.2" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#练习2-使用do-while-循环打印矩阵">
            
                    
                    练习2 使用do while 循环打印矩阵
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4.3" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#练习3-for循环打印矩形">
            
                    
                    练习3 for循环打印矩形
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4.4" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#练习4-1000以内能被7整除的数的平均值">
            
                    
                    练习4 1000以内能被7整除的数的平均值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4.5" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#练习5-for-循环嵌套打印矩阵">
            
                    
                    练习5 for 循环嵌套打印矩阵
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4.6" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#练习6-for循环嵌套打印三角形">
            
                    
                    练习6 for循环嵌套打印三角形
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4.7" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#练习7-for循环-找质数">
            
                    
                    练习7 for循环 找质数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#作业">
            
                    
                    作业
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.5.1" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#作业1-冒泡排序">
            
                    
                    作业1 冒泡排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.2" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#作业2-等腰三角形打印控制">
            
                    
                    作业2 等腰三角形打印控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.3" data-path="DAY04 回忆式笔记.html">
            
                <a href="DAY04 回忆式笔记.html#作业3-求1000以内质数的平均值">
            
                    
                    作业3 求1000以内质数的平均值
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#day05-回忆式笔记">
            
                    
                    DAY05 回忆式笔记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#死循环问题">
            
                    
                    死循环问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1.1" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#while语句死循环">
            
                    
                    while语句死循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.2" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#for语句死循环">
            
                    
                    for语句死循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.3" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#像但不是死循环">
            
                    
                    像但不是死循环
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#循环的特殊流程控制">
            
                    
                    循环的特殊流程控制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#break-语句">
            
                    
                    break 语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#循环的标签与break联合">
            
                    
                    循环的标签与break联合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.3" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#场景回顾-找质数与break">
            
                    
                    场景回顾 找质数与break
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#break中断某个语句块">
            
                    
                    break中断某个语句块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#continue-语句">
            
                    
                    continue 语句
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.3.1" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#continue-和-break-小有不同">
            
                    
                    continue 和 break 小有不同
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3.2" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#循环的标签与continue结合">
            
                    
                    循环的标签与continue结合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#return-语句">
            
                    
                    return 语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#特殊控制语句说明">
            
                    
                    特殊控制语句说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法method">
            
                    
                    方法(method)
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.6.1" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#什么是方法函数">
            
                    
                    什么是方法(函数)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6.2" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法的组成">
            
                    
                    方法的组成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6.3" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法的调用">
            
                    
                    方法的调用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6.4" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法无参无返回值的情况-void">
            
                    
                    方法无参无返回值的情况 void
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6.5" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#形参实参注意事项">
            
                    
                    形参实参注意事项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6.6" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法调用时发生了什么事情">
            
                    
                    方法调用时发生了什么事情
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法的重载overload">
            
                    
                    方法的重载(overload)
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.7.1" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#重载的概念">
            
                    
                    重载的概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7.2" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#重载的特点">
            
                    
                    重载的特点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7.3" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#形参和实参的兼容性匹配">
            
                    
                    形参和实参的兼容性匹配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7.4" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法签名到底签的是什么">
            
                    
                    方法签名到底签的是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7.5" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#重载的精准调用兼容度">
            
                    
                    重载的精准调用(兼容度)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7.6" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#println源码为什么名字相同的时候才重载">
            
                    
                    println源码为什么名字相同的时候才重载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7.7" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#连环调还是独立方法好">
            
                    
                    连环调还是独立方法好
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7.8" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#功能弱的方法要不要干掉">
            
                    
                    功能弱的方法要不要干掉
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法参数的传递">
            
                    
                    方法参数的传递
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#重点!!方法调用的分析">
            
                    
                    (重点!!)方法调用的分析
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.9.1" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#方法执行时究竟是怎么执行的栈!">
            
                    
                    方法执行时究竟是怎么执行的栈!
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习">
            
                    
                    练习
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.10.1" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习1-for循环打印空心矩形">
            
                    
                    练习1 for循环打印空心矩形
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10.2" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习2-break循环控制">
            
                    
                    练习2 break循环控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10.3" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习3-continue-整除控制">
            
                    
                    练习3 continue 整除控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10.4" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习4-方法声明及其调用-add">
            
                    
                    练习4 方法声明及其调用 add
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10.5" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习5-调用方法打印矩形">
            
                    
                    练习5 调用方法打印矩形
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10.6" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习6-调用方法打印矩形及其周长">
            
                    
                    练习6 调用方法打印矩形及其周长
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10.7" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习7-判断哪个方法是重载">
            
                    
                    练习7 判断哪个方法是重载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10.8" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习8-重载一个打印正方形的方法">
            
                    
                    练习8 重载一个打印正方形的方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10.9" data-path="DAY05 回忆式笔记.html">
            
                <a href="DAY05 回忆式笔记.html#练习9-用连环调来打印矩形-并切换图形的图案">
            
                    
                    练习9 用连环调来打印矩形 并切换图形的图案
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >DAY03 回忆式笔记</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="day03-&#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;">DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;</h1>
<blockquote>
<p>author: &#x9093;&#x5B50;&#x7426;</p>
</blockquote>
<h2 id="&#x5185;&#x5B58;&#x4E0E;&#x53D8;&#x91CF;&#x673A;&#x5236;">&#x5185;&#x5B58;&#x4E0E;&#x53D8;&#x91CF;&#x673A;&#x5236;</h2>
<h3 id="&#x5730;&#x5740;&#x7F16;&#x53F7;&#x662F;&#x4EC0;&#x4E48;">&#x5730;&#x5740;&#x7F16;&#x53F7;&#x662F;&#x4EC0;&#x4E48;?</h3>
<p>0&#x8868;&#x793A;&#x7A7A;</p>
<p>&#x5185;&#x5B58;&#x7531;&#x7EBF;&#x6027;&#x5B57;&#x8282;&#x7EC4;&#x6210;. </p>
<p>&#x6240;&#x6709;&#x7684;&#x5F15;&#x7528;&#x53D8;&#x91CF;&#x5728;&#x5185;&#x5B58;&#x4E2D;&#x90FD;&#x662F;&#x4E00;&#x6837;&#x7684;&#x5927;&#x5C0F;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x7528;4&#x4E2A;&#x5B57;&#x8282;&#x6765;&#x8FDB;&#x884C;&#x7F16;&#x53F7; &#x8FD9;&#x6837;&#x4F60;&#x5185;&#x5B58;&#x7F16;&#x53F7;&#x53EA;&#x80FD;&#x7F16;&#x5230;40&#x4EBF;</p>
<p>&#x6362;&#x7B97;&#x6210;GB&#x5176;&#x5B9E;&#x5C31;&#x662F;4GB &#x8FD9;&#x5C31;&#x662F;32&#x4F4D;&#x7CFB;&#x7EDF;</p>
<p>&#x5982;&#x679C;&#x662F;64&#x4F4D; &#x5C31;&#x80FD;&#x7F16;&#x7801;&#x5230;1800&#x4EBF;&#x4EBF;</p>
<p>16&#x4F4D;&#x7CFB;&#x7EDF; &#x6700;&#x5927;&#x5230;64k &#x4E5F;&#x5C31;&#x662F;&#x5355;&#x7247;&#x673A;</p>
<p>&#x6240;&#x4EE5;16&#x4F4D;&#x7CFB;&#x7EDF;&#x6700;&#x5FEB;&#x88AB;&#x6DD8;&#x6C70;.</p>
<p>jdk&#x4E5F;&#x6709;32&#x4F4D;,&#x4F46;&#x662F;&#x4E0D;&#x7528;&#x4E86;. 64&#x4F4D;&#x5C31;&#x662F;&#x6211;&#x6C38;&#x8FDC;&#x7528;8&#x4E2A;&#x5B57;&#x8282;&#x6765;&#x8868;&#x793A;&#x5185;&#x5B58;&#x5B57;&#x8282;&#x7684;&#x7F16;&#x53F7;.</p>
<h3 id="&#x53D8;&#x91CF;&#x53EF;&#x4EE5;&#x58F0;&#x660E;&#x5728;&#x4EC0;&#x4E48;&#x4F4D;&#x7F6E;-&#x6709;&#x4EC0;&#x4E48;&#x533A;&#x522B;">&#x53D8;&#x91CF;&#x53EF;&#x4EE5;&#x58F0;&#x660E;&#x5728;&#x4EC0;&#x4E48;&#x4F4D;&#x7F6E;? &#x6709;&#x4EC0;&#x4E48;&#x533A;&#x522B;?</h3>
<p>&#x5C40;&#x90E8;&#x53D8;&#x91CF;(local variable): &#x751F;&#x547D;&#x5728;&#x65B9;&#x6CD5;&#x4E2D;,&#x8303;&#x56F4;&#x5C0F;,&#x5BFF;&#x547D;&#x77ED;</p>
<blockquote>
<p>&#x5C40;&#x90E8;&#x53D8;&#x91CF;&#x5B58;&#x50A8;&#x5728;&#x6808;&#x5185;&#x5B58;&#x4E2D;, &#x662F;&#x5C40;&#x57DF;&#x7684;</p>
<p>&#x5C40;&#x90E8;&#x53D8;&#x91CF;&#x662F;&#x6211;&#x4EEC;&#x76EE;&#x524D;&#x7814;&#x7A76;&#x7684;&#x5185;&#x5BB9;</p>
</blockquote>
<p>&#x6210;&#x5458;&#x53D8;&#x91CF;(member variable): &#x58F0;&#x660E;&#x5728;&#x7C7B;&#x4E2D;&#x65B9;&#x6CD5;&#x5916;, &#x8303;&#x56F4;&#x5927;, &#x5BFF;&#x547D;&#x957F;</p>
<blockquote>
<p>&#x6210;&#x5458;&#x53D8;&#x91CF;&#x5728;&#x5806;&#x5185;&#x5B58;&#x4E2D;, &#x5806;&#x5185;&#x5B58;&#x662F;</p>
</blockquote>
<h2 id="&#x8FD0;&#x7B97;&#x7B26;">&#x8FD0;&#x7B97;&#x7B26;</h2>
<h3 id="&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;">&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;</h3>
<p>&#x6240;&#x4EE5;&#x7684;&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;&#x90FD;&#x662F;&#x57FA;&#x4E8E;32&#x4F4D;</p>
<table>
<thead>
<tr>
<th>&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;</th>
<th>&#x542B;&#x4E49;</th>
<th>&#x7279;&#x70B9;</th>
<th>&#x5907;&#x6CE8;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&lt;&lt;</td>
<td>&#x4E8C;&#x8FDB;&#x5236;&#x5411;&#x5DE6;&#x79FB;&#x52A8;&#x51E0;&#x4F4D;</td>
<td>&#x5DE6;&#x79FB;&#x4E00;&#x4F4D;&#x76F8;&#x5F53;&#x4E8E;&#x4E58;&#x4EE5;2</td>
<td>&#x53F3;&#x8FB9;&#x591A;&#x4F59;&#x7684;&#x62FF;0&#x6765;&#x8865;</td>
</tr>
<tr>
<td>&gt;&gt;</td>
<td>&#x4E8C;&#x8FDB;&#x5236;&#x5411;&#x53F3;&#x79FB;&#x52A8;&#x51E0;&#x4F4D;<br>&#x6709;&#x7B26;&#x53F7;&#x53F3;&#x79FB;</td>
<td>&#x53F3;&#x79FB;&#x4E00;&#x4F4D;&#x76F8;&#x5F53;&#x4E8E;&#x9664;&#x4EE5;2</td>
<td>&#x5982;&#x679C;&#x672C;&#x8EAB;&#x662F;&#x6B63;&#x6570;,&#x5DE6;&#x8FB9;&#x8865;0<br>&#x5982;&#x679C;&#x672C;&#x8EAB;&#x662F;&#x8D1F;&#x6570;,&#x5DE6;&#x8FB9;&#x8865;1</td>
</tr>
<tr>
<td>&gt;&gt;&gt;</td>
<td>&#x65E0;&#x7B26;&#x53F7;&#x53F3;&#x79FB;</td>
<td>&#x53F3;&#x79FB;&#x4E00;&#x4F4D;&#x76F8;&#x5F53;&#x4E8E;&#x9664;&#x4EE5;2</td>
<td>&#x65E0;&#x8BBA;&#x7B26;&#x53F7;&#x4F4D;&#x662F;0&#x8FD8;&#x662F;1 &#x90FD;&#x8865;0</td>
</tr>
<tr>
<td>&amp;</td>
<td>&#x6309;&#x4F4D;&#x4E0E;</td>
<td>&#x4E8C;&#x8FDB;&#x5236;&#x4F4D;&#x8FDB;&#x884C;&amp;&#x8FD0;&#x7B97;, <br>&#x5982;&#x679C;&#x5BF9;&#x5E94;&#x7684;&#x4E24;&#x4E2A;&#x4F4D;&#x7F6E;&#x90FD;&#x662F;1,<br>&#x90A3;&#x4E48;&#x7ED3;&#x679C;&#x5C31;&#x662F;1,&#x5982;&#x679C;&#x6709;0,&#x90A3;&#x4E48;&#x5C31;&#x662F;0</td>
<td>&#x7ED3;&#x679C;&#x603B;&#x662F;&#x5C0F;&#x4E8E;&#x7B49;&#x4E8E;&#x8FD0;&#x7B97;&#x6570;</td>
</tr>
<tr>
<td>\</td>
<td></td>
<td>&#x6216;&#x8FD0;&#x7B97;</td>
<td></td>
<td>&#x7ED3;&#x679C;&#x603B;&#x662F;&#x5927;&#x4E8E;&#x7B49;&#x4E8E;&#x8FD0;&#x7B97;&#x6570;</td>
</tr>
<tr>
<td>^</td>
<td>&#x5F02;&#x6216;<br>&#x5173;&#x952E;&#x662F;<strong>&#x5F02;</strong>, &#x4E5F;&#x5C31;&#x662F;&#x4E0D;&#x4E00;&#x6837;</td>
<td></td>
<td>&#x7ED3;&#x679C;&#x4E0D;&#x7A33;&#x5B9A;, &#x901A;&#x5E38;&#x7528;&#x4E8E;&#x52A0;&#x5BC6;<br>MD5&#x7B97;&#x6CD5;&#x4E2D;&#x5C31;&#x7528;&#x5230;&#x4E86;&#x5927;&#x91CF;&#x7684;&#x5F02;&#x6216;&#x8FD0;&#x7B97;</td>
</tr>
<tr>
<td>~</td>
<td>&#x4F4D;&#x53D6;&#x53CD;</td>
<td>&#x6B63;&#x6570;&#x53D8;&#x8D1F;&#x6570;,&#x8D1F;&#x6570;&#x53D8;&#x6B63;&#x6570;<br>&#x7ED3;&#x679C;&#x90FD;&#x662F;&#x4E00;&#x4E2A;&#x6570;&#x7684;&#x53D6;&#x53CD;+1</td>
</tr>
</tbody>
</table>
<pre><code class="lang-java">public class Binarytest
    public static void main(String[] args) {
    //&lt;&lt;,&gt;&gt;,&gt;&gt;
        intn=0x9C;//00000000000000000000000010011100
        System.out. println(&quot;n + n)
        System,out. printin(n&lt;&lt;3);//o000000000000000000010011100000=&gt;&#x2299;x4E0
        System,out. println(n&gt;&gt;3);//0000000000000000000000000010011=&gt;0x13
        System.out. printin(n&gt;&gt;&gt;3);//o000000000000000000000000010011=&gt;0x13
        System. out. println(-1&gt;&gt; 3) //1111 1111
        System. out.println(-1&gt;&gt;&gt; 1);
        inta=0X6E;//61101110
        intb=x5A;//1011010
        //01101110
        //01011010
        //01001010=&gt;&#x2299;x4A=&gt;74
System.out. println(a&amp;b);
</code></pre>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823101145958.png" alt="image-20210823101145958"></p>
<h4 id="&#x8865;&#x5145;&#x5F02;&#x6216;&#x52A0;&#x5BC6;&#x5B9E;&#x8DF5;">&#x8865;&#x5145;&#x5F02;&#x6216;&#x52A0;&#x5BC6;&#x5B9E;&#x8DF5;</h4>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823104432988.png" alt="&#x5F02;&#x6216;&#x52A0;&#x5BC6;&#x89E3;&#x5BC6;"></p>
<h3 id="&#x7B97;&#x672F;&#x8FD0;&#x7B97;&#x7B26;">&#x7B97;&#x672F;&#x8FD0;&#x7B97;&#x7B26;</h3>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823104747109.png" alt="image-20210823104747109"></p>
<h4 id="&#x9664;&#x6CD5;&#x8FD0;&#x7B97;&#x6CE8;&#x610F;&#x70B9;">&#x9664;&#x6CD5;&#x8FD0;&#x7B97;&#x6CE8;&#x610F;&#x70B9;</h4>
<p><strong>&#x9664;&#x6CD5;&#x8FD0;&#x7B97;&#x9700;&#x8981;&#x7279;&#x6B8A;&#x6CE8;&#x610F;</strong>, &#x6574;&#x6570;&#x8FDB;&#x884C;&#x9664;&#x6CD5;&#x540E;&#x7ED3;&#x679C;&#x8FD8;&#x662F;&#x6574;&#x6570;,&#x5C0F;&#x6570;&#x76F4;&#x63A5;&#x4E22;&#x5F03;</p>
<h4 id="&#x6C42;&#x4F59;&#x8FD0;&#x7B97;&#x6CE8;&#x610F;&#x70B9;">&#x6C42;&#x4F59;&#x8FD0;&#x7B97;&#x6CE8;&#x610F;&#x70B9;</h4>
<blockquote>
<p>&#x53D6;&#x4F59;&#x8FD0;&#x7B97;&#x7684;&#x7279;&#x70B9; &#x4E00;&#x4E2A;&#x6570;&#x5BF9;5&#x53D6;&#x4F59;,&#x7ED3;&#x679C;&#x4E00;&#x5B9A;&#x5728;0&#x548C;4&#x4E4B;&#x95F4; &#x5E94;&#x7528;&#x573A;&#x666F;,&#x8BA9;&#x4E00;&#x4E2A;&#x672A;&#x77E5;&#x6570;&#x843D;&#x5165;&#x5DF2;&#x77E5;&#x8303;&#x56F4;</p>
<p>&#x5982;&#x679C;&#x7ED3;&#x679C;&#x4E3A;0,&#x90A3;&#x4E48;&#x8BF4;&#x660E;</p>
<p>&#x5BF9;2&#x6C42;&#x4F59; &#x5982;&#x679C;&#x7ED3;&#x679C;&#x4E3A;0,&#x90A3;&#x4E48;&#x8BF4;&#x660E;&#x662F;&#x5076;&#x6570; &#x5982;&#x679C;&#x4E0D;&#x662F;&#x5C31;&#x662F;&#x5947;&#x6570;</p>
</blockquote>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823105728693.png" alt="image-20210823105728693"></p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823110034965.png" alt="image-20210823110034965"></p>
<p><strong>&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7684;&#x4F18;&#x5148;&#x503C;&#x6700;&#x4F4E;</strong>, &#x53F3;&#x8FB9;&#x6267;&#x884C;&#x5B8C;&#x4E4B;&#x540E;&#x624D;&#x80FD;&#x7ED9;&#x5DE6;&#x8FB9;</p>
<h4 id="&#x540E;&#x548C;&#x524D;&#x6CE8;&#x610F;&#x70B9;">&#x540E;++&#x548C;&#x524D;++&#x6CE8;&#x610F;&#x70B9;</h4>
<p>a++ &#x540E;++ &#x5148;&#x7528;&#x540E;&#x52A0;</p>
<p>&#x6240;&#x4EE5;&#x5728;&#x6267;&#x884C;&#x524D;&#x8981;&#x5F04;&#x51FA;&#x4E00;&#x4E2A;&#x4E34;&#x65F6;&#x7A7A;&#x95F4;&#x5B58;&#x50A8;&#x8FD9;&#x4E2A;10,&#x628A;a&#x4E2D;&#x7684;&#x8001;&#x503C;&#x653E;&#x8FDB;&#x53BB;</p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823110329398.png" alt="image-20210823110329398"></p>
<p>++a</p>
<p><strong>&#x524D;&#x52A0;&#x52A0;</strong>&#x6CA1;&#x6709;&#x4E34;&#x65F6;&#x7A7A;&#x95F4;,&#x6240;&#x4EE5;&#x524D;&#x52A0;&#x52A0;&#x6548;&#x7387;&#x7A0D;&#x9AD8;,&#x4E0D;&#x8FC7;&#x8FD9;&#x4E2A;&#x63D0;&#x5347;&#x592A;&#x5F31;&#x4E86; &#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x4E00;&#x822C;&#x7528;&#x7684;&#x540E;++</p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823112620203.png" alt="image-20210823112620203"></p>
<h4 id="&#x5B57;&#x7B26;&#x4E32;&#x8FD0;&#x7B97;&#x6CE8;&#x610F;&#x70B9;">&#x5B57;&#x7B26;&#x4E32;+&#x8FD0;&#x7B97;&#x6CE8;&#x610F;&#x70B9;</h4>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823112714484.png" alt="image-20210823112714484"></p>
<h3 id="&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x6CE8;&#x610F;&#x70B9;">&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x6CE8;&#x610F;&#x70B9;</h3>
<p><strong>&#x8BB0;&#x4F4F;&#x4E00;&#x70B9;</strong>, &#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#x6700;&#x4F4E;, &#x8FD9;&#x6837;&#x6211;&#x4EEC;&#x5C31;&#x80FD;&#x7406;&#x89E3;<strong>&#x4E3A;&#x4EC0;&#x4E48;&#x4ECE;&#x53F3;&#x5411;&#x5DE6;&#x4E86;</strong>.</p>
<p>&#x53F3;&#x8FB9;&#x7684;&#x503C;&#x5982;&#x679C;&#x4E0D;&#x786E;&#x5B9A;, &#x4E0D;&#x80FD;&#x5411;&#x5DE6;&#x8D70;</p>
<p>&#x800C;&#x4E14;</p>
<p>&#x8D4B;&#x503C;&#x8868;&#x8FBE;&#x5F0F;&#x672C;&#x8EAB;&#x5C31;&#x662F;&#x6709;&#x503C;&#x7684;, &#x4E0B;&#x9762;&#x7684;&#x4EE3;&#x7801;&#x6253;&#x5370;&#x662F;20, &#x4E0D;&#x8FC7;&#x8FD9;&#x91CC;&#x7684;&#x503C;&#x4E0D;&#x662F;&#x4ECE;a&#x4E2D;copy&#x7684;, &#x800C;&#x662F;&#x8868;&#x8FBE;&#x5F0F;&#x672C;&#x8EAB;&#x7684;&#x503C;</p>
<p>&#x4E09;&#x4E2A;&#x64CD;&#x4F5C;</p>
<p>&#x7B2C;&#x4E00;&#x6B65; &#x628A;20&#x5237;&#x7ED9;a</p>
<p>&#x7B2C;&#x4E8C;&#x90E8; &#x628A;&#x8868;&#x8FBE;&#x5F0F;&#x7684;20&#x4F5C;&#x4E3A;&#x6253;&#x5370;&#x7684;&#x5185;&#x5BB9;</p>
<p>&#x7B2C;&#x4E09;&#x6B65; &#x628A;&#x5185;&#x5BB9;&#x6253;&#x5370;&#x51FA;&#x6765;</p>
<p>&#x4E3A;&#x4EC0;&#x4E48;&#x8BB2;&#x8FD9;&#x4E2A;?java &#x652F;&#x6301;&#x8FDE;&#x7EED;&#x8D4B;&#x503C;</p>
<pre><code class="lang-java">a=b=c=<span class="hljs-number">100</span>;
<span class="hljs-comment">// &#x8FD9;&#x4E2A;100&#x7ED9;b&#x8D4B;&#x503C;&#x7684;&#x65F6;&#x5019;&#x662F;&#x76F4;&#x63A5;&#x4ECE;&#x8868;&#x8FBE;&#x5F0F;&#x91CC;&#x53D6;&#x7684;, &#x800C;&#x4E0D;&#x662F;&#x4ECE;c&#x4E2D;copy&#x51FA;&#x6765;&#x7684;</span>
<span class="hljs-comment">// &#x7ED3;&#x679C;&#x662F;a,b,c &#x4E09;&#x4E2A;&#x53D8;&#x91CF;&#x7684;&#x503C;&#x90FD;&#x662F;100</span>
</code></pre>
<pre><code class="lang-java"><span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">OperatorTest</span> </span>{

}
</code></pre>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823113335114.png" alt="image-20210823113335114"></p>
<p><strong>if&#x95EE;&#x9898;</strong></p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823114321323.png" alt="image-20210823114321323"></p>
<h4 id="&#x6269;&#x5C55;&#x64CD;&#x4F5C;&#x8FD0;&#x7B97;&#x7B26;">&#x6269;&#x5C55;&#x64CD;&#x4F5C;&#x8FD0;&#x7B97;&#x7B26;</h4>
<p>&#x4E0D;&#x4F1A;&#x5F15;&#x8D77;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x7684;&#x53D8;&#x5316;, <strong>&#x6211;&#x4EEC;&#x628A;&#x62D3;&#x5C55;&#x8FD0;&#x7B97;&#x7B26;&#x7EDF;&#x79F0;&#x4E3A;&#x7D2F;&#x64CD;&#x4F5C;</strong>.</p>
<p><strong>&#x4F18;&#x70B9;:</strong> &#x4E0D;&#x4F1A;&#x89E6;&#x53D1;&#x7C7B;&#x578B;&#x7684;&#x53D8;&#x5316;, &#x8BA9;&#x7F16;&#x8BD1;&#x5668;&#x51FA;&#x9519;</p>
<p>&#x6240;&#x4EE5;,  &#x4E0B;&#x9762;&#x7684;&#x4EE3;&#x7801;&#x867D;&#x7136;&#x6548;&#x679C;&#x4E00;&#x6837;&#x4F46;&#x662F;&#x672C;&#x8D28;&#x5B8C;&#x5168;&#x4E0D;&#x540C;.</p>
<pre><code class="lang-java">n += <span class="hljs-number">20</span>;
n = n + <span class="hljs-number">20</span>;
</code></pre>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823113913196.png" alt="image-20210823113913196"></p>
<h3 id="&#x6BD4;&#x8F83;&#x8FD0;&#x7B97;&#x7B26;">&#x6BD4;&#x8F83;&#x8FD0;&#x7B97;&#x7B26;</h3>
<table>
<thead>
<tr>
<th>&#x8FD0;&#x7B97;&#x7B26;</th>
<th>&#x8FD0;&#x7B97;&#x7ED3;&#x679C;</th>
<th>&#x8303;&#x4F8B;</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823114850316.png" alt="image-20210823114850316"></p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823114945484.png" alt="image-20210823114945484"></p>
<font color="red">&#x4E24;&#x4E2A;&#x5B66;&#x751F;&#x5BF9;&#x8C61;&#x4E0D;&#x80FD;&#x6BD4;&#x5927;&#x5C0F;&#xFF0C;&#x4F60;&#x5FC5;&#x987B;&#x8981;&#x5B9A;&#x4E49;&#x5230;&#x5E95;&#x6BD4;&#x90A3;&#x4E2A;&#x7EF4;&#x5EA6;&#xFF0C;&#x6BD4;&#x5982;&#x8EAB;&#x9AD8;</font>

<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823115051661.png" alt="image-20210823115051661"></p>
<h4 id="&#x4E3A;&#x4EC0;&#x4E48;&#x4E0D;&#x80FD;&#x8FDE;&#x7EED;&#x6BD4;&#x8F83;">&#x4E3A;&#x4EC0;&#x4E48;&#x4E0D;&#x80FD;&#x8FDE;&#x7EED;&#x6BD4;&#x8F83;</h4>
<p><strong>&#x6CE8;&#x610F; &#x4E0D;&#x662F;&#x8BED;&#x6CD5;&#x4E0D;&#x5141;&#x8BB8; &#x800C;&#x662F;&#x7C7B;&#x578B;&#x9519;&#x8BEF;</strong></p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823115351286.png" alt="image-20210823115351286"></p>
<p>&#x4F46;&#x662F; 3&lt;x==false&#x662F;&#x53EF;&#x4EE5;&#x7684;</p>
<h3 id="&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;">&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;</h3>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823115533696.png" alt="image-20210823115533696"></p>
<p>&#x77ED;&#x8DEF;&#x4E0E; &#x5982;&#x679C;&#x5DE6;&#x8FB9;&#x4E3A;false &#x53F3;&#x8FB9;&#x5C31;&#x6CA1;&#x5FC5;&#x8981;&#x4E86;</p>
<font color="red">&#x771F;&#x7684;&#x5F00;&#x53D1;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x662F;&#x7981;&#x6B62;&#x4F7F;&#x7528;&amp;&#x548C; | &#x7684;&#xFF0C;&#x5FC5;&#x987B;&#x4F7F;&#x7528;&amp;&amp; &#x548C; || &#x3002;</font>

<h3 id="&#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;">&#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;</h3>
<p>&#x53D8;&#x91CF; = (&#x6761;&#x4EF6;&#x5E03;&#x5C14; )?&#x8868;&#x8FBE;&#x5F0F;1: &#x8868;&#x8FBE;&#x5F0F;2</p>
<blockquote>
<p>&#x4E24;&#x4E2A;&#x8868;&#x8FBE;&#x5F0F;&#x7684;&#x8F93;&#x51FA;&#x7C7B;&#x578B;&#x5FC5;&#x987B;&#x90FD;&#x80FD;&#x8BA9;&#x53D8;&#x91CF;&#x63A5;&#x4F4F;</p>
</blockquote>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823140558501.png" alt="image-20210823140558501"></p>
<h3 id="&#x8FD0;&#x7B97;&#x7B26;&#x4F18;&#x5148;&#x7EA7;">&#x8FD0;&#x7B97;&#x7B26;&#x4F18;&#x5148;&#x7EA7;</h3>
<p>&#x4E3B;&#x8981;&#x8BB0;&#x4F4F;&#x6700;&#x9AD8;&#x7684;&#x548C;&#x6700;&#x4F4E;&#x7684;</p>
<p>&#x6700;&#x4F4E;&#x7684;&#x5C31;&#x662F;&#x8D4B;&#x503C;&#x7B26;&#x53F7;</p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823144432378.png" alt="image-20210823144432378"></p>
<h2 id="&#x6D41;&#x7A0B;&#x63A7;&#x5236;">&#x6D41;&#x7A0B;&#x63A7;&#x5236;</h2>
<h3 id="&#x4EC0;&#x4E48;&#x662F;&#x6D41;&#x7A0B;-&#x6709;&#x51E0;&#x79CD;&#x6D41;&#x7A0B;&#x63A7;&#x5236;">&#x4EC0;&#x4E48;&#x662F;&#x6D41;&#x7A0B;? &#x6709;&#x51E0;&#x79CD;&#x6D41;&#x7A0B;&#x63A7;&#x5236;?</h3>
<p>&#x6D41;&#x7A0B;&#x5C31;&#x662F;&#x7A0B;&#x5E8F;&#x5E72;&#x5B8C;&#x8FD9;&#x4E2A;&#x518D;&#x5E72;&#x4EC0;&#x4E48;, &#x7814;&#x7A76;&#x8FD9;&#x4E2A;&#x987A;&#x5E8F;&#x5C31;&#x662F;&#x6D41;&#x7A0B;&#x4E86;.</p>
<p><strong>&#x4E09;&#x79CD;&#x6D41;&#x7A0B;&#x63A7;&#x5236;</strong></p>
<ol>
<li>&#x987A;&#x5E8F;&#x7ED3;&#x6784;
&#x7A0B;&#x5E8F;&#x4ECE;&#x4E0A;&#x5230;&#x4E0B;&#x9010;&#x884C;&#x5730;&#x6267;&#x884C;, &#x4E2D;&#x95F4;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x5224;&#x65AD;&#x548C;&#x8DF3;&#x8F6C;</li>
<li>&#x5206;&#x652F;<ul>
<li>&#x6839;&#x636E;&#x6761;&#x4EF6;, &#x9009;&#x62E9;&#x6027;&#x5730;&#x6267;&#x884C;&#x67D0;&#x6BB5;&#x4EE3;&#x7801;</li>
<li>&#x6709;<code>if...else</code>&#x548C;<code>switch case</code>&#x4E24;&#x79CD;&#x5206;&#x652F;&#x8BED;&#x53E5;</li>
</ul>
</li>
<li>&#x5FAA;&#x73AF;&#x7ED3;&#x6784;<ul>
<li>&#x6709;&#x5FAA;&#x73AF;&#x6761;&#x4EF6;,&#x9009;&#x62E9;&#x6027;&#x5730;&#x6267;&#x884C;&#x67D0;&#x6BB5;&#x4EE3;&#x7801;</li>
<li>&#x6709;<code>while</code>, <code>do while</code>,<code>for</code>&#x4E09;&#x79CD;&#x5FAA;&#x73AF;&#x8BED;&#x53E5;.</li>
<li><strong>&#x6CE8;:</strong>JDK1.5&#x63D0;&#x4F9B;&#x4E86; for each &#x5FAA;&#x73AF;, &#x65B9;&#x4FBF;&#x5730;&#x904D;&#x5386;&#x96C6;&#x5408;, &#x6570;&#x7EC4;&#x5143;&#x7D20;</li>
</ul>
</li>
</ol>
<h3 id="&#x5206;&#x652F;&#x8BED;&#x53E5;1-if-else-&#x53CA;&#x5176;">&#x5206;&#x652F;&#x8BED;&#x53E5;1: if-else &#x53CA;&#x5176;</h3>
<h4 id="3&#x79CD;&#x65B9;&#x5F0F;">3&#x79CD;&#x65B9;&#x5F0F;</h4>
<ol>
<li><code>if</code></li>
</ol>
<pre><code class="lang-java"><span class="hljs-comment">// &#x6709;&#x6761;&#x4EF6;&#x6267;&#x884C;</span>
<span class="hljs-keyword">if</span>(&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;){
    &#x6267;&#x884C;&#x4EE3;&#x7801;&#x5757;;        <span class="hljs-comment">// &#x6709;&#x6761;&#x4EF6;&#x6267;&#x884C;&#x8BED;&#x53E5;,&#x5982;&#x679C;&#x6761;&#x4EF6;&#x5E03;&#x5C14;&#x4E3A;&#x771F; &#x5C31;&#x6267;&#x884C; &#x4E3A;&#x5047; &#x5C31;&#x4E0D;&#x6267;&#x884C;</span>
}
System.out.println(<span class="hljs-string">&quot;hahaha&quot;</span>); <span class="hljs-comment">// &#x65E0;&#x6761;&#x4EF6;&#x6267;&#x884C;&#x8BED;&#x53E5;</span>
</code></pre>
<ol>
<li><code>if else</code></li>
</ol>
<pre><code class="lang-java"><span class="hljs-comment">// &#x4E24;&#x6761;&#x8DEF;&#x53EA;&#x80FD;&#x8D70;&#x4E00;&#x6761;</span>
<span class="hljs-keyword">if</span>(&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;){
    &#x6267;&#x884C;&#x4EE3;&#x7801;&#x5757;<span class="hljs-number">1</span>;        <span class="hljs-comment">// &#x5982;&#x679C;&#x6761;&#x4EF6;&#x5E03;&#x5C14;&#x4E3A;true, &#x6267;&#x884C;&#x4EE3;&#x7801;&#x5757;1</span>
}<span class="hljs-keyword">else</span> {
    &#x6267;&#x884C;&#x4EE3;&#x7801;&#x5757;<span class="hljs-number">2</span>;        <span class="hljs-comment">// &#x5982;&#x679C;&#x6761;&#x4EF6;&#x5E03;&#x5C14;&#x4E3A;false, &#x6267;&#x884C;&#x8BED;&#x53E5;&#x5757;2</span>
}
System.out.println(<span class="hljs-string">&quot;hahaha&quot;</span>); <span class="hljs-comment">// &#x65E0;&#x6761;&#x4EF6;&#x6267;&#x884C;&#x8BED;&#x53E5;</span>
</code></pre>
<ol>
<li><code>if else if</code></li>
</ol>
<pre><code class="lang-java"><span class="hljs-comment">// &#x591A;&#x6761;&#x8DEF;&#x53EA;&#x80FD;&#x8D70;&#x4E00;&#x6761;</span>
<span class="hljs-keyword">if</span>(&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;<span class="hljs-number">1</span>){
    &#x6267;&#x884C;&#x4EE3;&#x7801;&#x5757;<span class="hljs-number">1</span>;        <span class="hljs-comment">// &#x5982;&#x679C;&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;1&#x4E3A; true &#x6267;&#x884C;</span>
}<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>(&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;<span class="hljs-number">2</span>){
    &#x6267;&#x884C;&#x4EE3;&#x7801;&#x5757;<span class="hljs-number">2</span>;        <span class="hljs-comment">// &#x5982;&#x679C;&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;1&#x4E3A; false &#x4E14; &#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;&#x4E3A;true &#x6267;&#x884C;</span>
}<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>(&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;<span class="hljs-number">3</span>){
    &#x6267;&#x884C;&#x4EE3;&#x7801;&#x5757;<span class="hljs-number">3</span>;        <span class="hljs-comment">// &#x5982;&#x679C;&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;1&#x548C;2 &#x90FD;&#x4E3A;false &#x4E14;&#x6761;&#x4EF6;&#x8868;&#x8FBE;&#x5F0F;3 &#x4E3A;true &#x6267;&#x884C;</span>
}
...<span class="hljs-keyword">else</span>{
    &#x6267;&#x884C;&#x4EE3;&#x7801;&#x5757;<span class="hljs-number">4</span>;        <span class="hljs-comment">// &#x5982;&#x679C;&#x4E0A;&#x8FF0;&#x90FD;&#x4E3A;false &#x6267;&#x884C;   </span>
}
System.out.println(<span class="hljs-string">&quot;hahaha&quot;</span>); <span class="hljs-comment">// &#x65E0;&#x6761;&#x4EF6;&#x6267;&#x884C;&#x8BED;&#x53E5;</span>

<span class="hljs-comment">// &#x6761;&#x4EF6;&#x4E4B;&#x95F4;&#x662F;</span>
</code></pre>
<h4 id="&#x5D4C;&#x5957;">&#x5D4C;&#x5957;</h4>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">IfTest4</span> </span>{
    <span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span>
}
</code></pre>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823152703899.png" alt="image-20210823152703899"></p>
<h4 id="&#x65E0;&#x82B1;&#x62EC;&#x53F7;&#x8BED;&#x6CD5;">&#x65E0;&#x82B1;&#x62EC;&#x53F7;&#x8BED;&#x6CD5;</h4>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823153025785.png" alt="image-20210823153025785"></p>
<h3 id="&#x5206;&#x652F;&#x8BED;&#x53E5;2-switch-case">&#x5206;&#x652F;&#x8BED;&#x53E5;2: switch case</h3>
<p>switch&#x7528;&#x4E8E;&#x7A77;&#x4E3E;&#x53D8;&#x91CF;&#x7684;&#x53EF;&#x80FD;&#x7684;&#x6240;&#x6709;&#x5236;&#x7684;&#x60C5;&#x51B5;</p>
<p><strong>&#x4F7F;&#x7528;switch&#x7684;&#x51E0;&#x70B9;&#x6CE8;&#x610F;&#x4E8B;&#x9879;</strong></p>
<pre><code class="lang-java"><span class="hljs-keyword">switch</span>(&#x53D8;&#x91CF;){
    <span class="hljs-keyword">case</span> &#x5E38;&#x91CF;<span class="hljs-number">1</span>:
        &#x8BED;&#x53E5;<span class="hljs-number">1</span>;
        <span class="hljs-keyword">break</span>;
    <span class="hljs-keyword">case</span> &#x5E38;&#x91CF;<span class="hljs-number">2</span>:
        &#x8BED;&#x53E5;<span class="hljs-number">2</span>;
        <span class="hljs-keyword">break</span>

}
</code></pre>
<pre><code class="lang-java"><span class="hljs-comment">// switch&#x91CC;&#x9762;&#x5FC5;&#x987B;&#x662F;&#x53D8;&#x91CF;</span>
<span class="hljs-comment">// case &#x540E;&#x9762;&#x5FC5;&#x987B;&#x662F;&#x5E38;&#x91CF;</span>
<span class="hljs-comment">// &#x5728;&#x5B9E;&#x9645;&#x7684;&#x5F00;&#x53D1;&#x5F53;&#x4E2D;, case&#x4E0D;&#x4F1A;&#x592A;&#x591A;,&#x56E0;&#x4E3A;&#x592A;&#x591A;&#x5C31;&#x5931;&#x53BB;&#x4E86;&#x610F;&#x4E49;.</span>
<span class="hljs-comment">// &#x5982;&#x679C;&#x573A;&#x666F;&#x79CD;&#x53EF;&#x4EE5;&#x7528;switch&#x90A3;&#x4E48;&#x4E00;&#x5B9A;&#x8981;&#x7528;switch,&#x56E0;&#x4E3A;&#x6548;&#x7387;&#x9AD8;&#x51FA;&#x5F88;&#x591A;</span>
<span class="hljs-comment">// case &#x4E0D;&#x80FD;&#x91CD;&#x590D;</span>
<span class="hljs-keyword">int</span> n = <span class="hljs-number">10</span>;
<span class="hljs-keyword">switch</span>(n){            <span class="hljs-comment">// switch(&#x5FC5;&#x987B;&#x662F;&#x53D8;&#x91CF;), &#x6570;&#x636E;&#x7C7B;&#x578B;&#x53EF;&#x4EE5;&#x662F;&#x6574;&#x6570;byte, short, char, int String &#x679A;&#x4E3E;</span>
    <span class="hljs-keyword">case</span> <span class="hljs-number">1</span>:            <span class="hljs-comment">// case &#x540E;&#x9762;&#x5FC5;&#x987B;&#x662F;&#x5E38;&#x91CF;,&#x5E38;&#x91CF;&#x5305;&#x62EC;&#x5B57;&#x9762;&#x91CF;&#x548C;final&#x4FEE;&#x9970;&#x7684;&#x91CF;,if(n==1)</span>
        System.out.println(<span class="hljs-string">&quot;n==1&quot;</span>);
        <span class="hljs-keyword">break</span>;
    <span class="hljs-keyword">case</span> <span class="hljs-number">2</span>:
        System.out.println(<span class="hljs-string">&quot;n==2&quot;</span>);
        <span class="hljs-keyword">break</span>;
    <span class="hljs-keyword">case</span> <span class="hljs-number">5</span>:
        System.out.println(<span class="hljs-string">&quot;n==5&quot;</span>);
        <span class="hljs-keyword">break</span>;
    <span class="hljs-keyword">case</span> <span class="hljs-number">10</span>:
        System.out.println(<span class="hljs-string">&quot;n==10&quot;</span>);        <span class="hljs-comment">// &#x4F1A;&#x8FDB;&#x5165;&#x6B64;&#x5904;</span>
        <span class="hljs-keyword">break</span>;
    <span class="hljs-keyword">default</span>:
        System.out.println(<span class="hljs-string">&quot;default&quot;</span>);
        <span class="hljs-keyword">break</span>;
}
System.out.println(<span class="hljs-string">&quot;after&quot;</span>);
</code></pre>
<h4 id="&#x4F7F;&#x7528;switch&#x7684;&#x76F8;&#x5173;&#x89C4;&#x5219;">&#x4F7F;&#x7528;switch&#x7684;&#x76F8;&#x5173;&#x89C4;&#x5219;</h4>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823163505793.png" alt="image-20210823163505793"></p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823162208988.png" alt="image-20210823162208988"></p>
<h4 id="&#x6CA1;&#x6709;break&#x4F1A;&#x600E;&#x4E48;&#x6837;">&#x6CA1;&#x6709;break&#x4F1A;&#x600E;&#x4E48;&#x6837;</h4>
<p>&#x6CA1;&#x6709;<code>break</code>&#x4EE5;&#x540E;, &#x4E00;&#x65E6;&#x67D0;&#x4E2A;case&#x8FDB;&#x5165;, &#x540E;&#x9762;&#x6240;&#x6709;case&#x5F62;&#x540C;&#x865A;&#x8BBE;, &#x4E5F;&#x4F1A;&#x81EA;&#x52A8;&#x8FDB;&#x5165;</p>
<font color="red">break&#x7684;&#x4F5C;&#x7528;&#x5C31;&#x662F;&#x9632;&#x6B62;&#x7A7F;&#x900F; &#x7528;&#x6765;&#x4E2D;&#x65AD;`switch`</font>

<p>deafult&#x91CC;&#x9762;&#x7684;break&#x8981;&#x4E0D;&#x8981;&#x52A0;?</p>
<p>laos?s/yyyyy<img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823163746089.png" alt="image-20210823163746089"></p>
<h2 id="&#x989D;&#x5916;&#x8865;&#x5145;">&#x989D;&#x5916;&#x8865;&#x5145;</h2>
<h3 id="java&#x5982;&#x4F55;&#x5F97;&#x5230;&#x547D;&#x4EE4;&#x884C;&#x53C2;&#x6570;">java&#x5982;&#x4F55;&#x5F97;&#x5230;&#x547D;&#x4EE4;&#x884C;&#x53C2;&#x6570;</h3>
<p>java&#x7A0B;&#x5E8F;&#x8FD0;&#x884C;&#x65F6; main &#x65B9;&#x6CD5;&#x7684; args&#x53C2;&#x6570; &#x4F1A;&#x63A5;&#x6536; cmd &#x4F20;&#x5165;&#x7684;&#x5B9E;&#x53C2;</p>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">ArgsTest</span> </span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span></span>{
        System.out.println(args[<span class="hljs-number">0</span>]);
        System.out.println(args[<span class="hljs-number">1</span>]);
        System.out.println(args[<span class="hljs-number">2</span>]);
        System.out.println(args[<span class="hljs-number">3</span>]);
    }
}
</code></pre>
<pre><code class="lang-bash">$ javac ArgsTest.java
$ java ArgsTest abc ccc ggg 123
<span class="hljs-comment"># out</span>
<span class="hljs-comment"># abc</span>
<span class="hljs-comment"># ccc</span>
<span class="hljs-comment"># ggg</span>
<span class="hljs-comment"># 123</span>
</code></pre>
<p><strong>&#x547D;&#x4EE4;&#x884C;&#x53C2;&#x6570;&#x8FDB;&#x5165;java&#x7A0B;&#x5E8F;&#x662F;&#x4EE5;&#x5B57;&#x7B26;&#x4E32;&#x7684;&#x7C7B;&#x578B;&#x5B58;&#x5728;</strong>, &#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>Intger.parseInt()</code>&#x65B9;&#x6CD5;&#x5C06;&#x5B57;&#x7B26;&#x4E32;&#x8F6C;&#x4E3A;<code>int</code>&#x7C7B;&#x578B;&#x7684;&#x6570;&#x503C;.</p>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823142030822.png" alt="image-20210823142030822"></p>
<h2 id="&#x7EC3;&#x4E60;">&#x7EC3;&#x4E60;</h2>
<h3 id="&#x7EC3;&#x4E60;1-&#x6309;&#x4F4D;&#x4E0E;-&#x6216;--&#x5F02;&#x6216;&#x8FD0;&#x7B97;">&#x7EC3;&#x4E60;1 &#x6309;&#x4F4D;&#x4E0E;, &#x6216; , &#x5F02;&#x6216;&#x8FD0;&#x7B97;</h3>
<blockquote>
<p>&#x8BA1;&#x7B97;16&#x8FDB;&#x5236;&#x6570; 0x9F 0x42</p>
</blockquote>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Wei</span></span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span></span>{
        <span class="hljs-keyword">int</span> a = <span class="hljs-number">0x9F</span>;         
        <span class="hljs-keyword">int</span> b = <span class="hljs-number">0x42</span>;
        <span class="hljs-comment">//   1001 1111</span>
        <span class="hljs-comment">//      0100 0010</span>
        <span class="hljs-comment">//&amp;  0000 0010 = 0x02 = 2</span>
        System.out.println(<span class="hljs-string">&quot;&#x4E0E;&#x8FD0;&#x7B97;=&quot;</span>+(a &amp; b));
        <span class="hljs-comment">//   1001 1111</span>
        <span class="hljs-comment">//      0100 0010</span>
        <span class="hljs-comment">// | 1101 1111 = 0xDF = 223</span>
        System.out.println(<span class="hljs-string">&quot;&#x6216;&#x8FD0;&#x7B97;=&quot;</span>+(a | b));
        <span class="hljs-comment">//   1001 1111</span>
        <span class="hljs-comment">//      0100 0010</span>
        <span class="hljs-comment">//^ 1101 1101 = 0xDD = 221</span>
        System.out.println(<span class="hljs-string">&quot;&#x5F02;&#x6216;&#x8FD0;&#x7B97;=&quot;</span>+(a ^ b));
    }
}
<span class="hljs-comment">/* out
&#x4E0E;&#x8FD0;&#x7B97;=2
&#x6216;&#x8FD0;&#x7B97;=223
&#x5F02;&#x6216;&#x8FD0;&#x7B97;=221
*/</span>
</code></pre>
<h3 id="&#x7EC3;&#x4E60;2-&#x7B97;&#x6570;&#x8FD0;&#x7B97;&#x7B26;-&#x81EA;&#x52A0;-&#x81EA;&#x51CF;">&#x7EC3;&#x4E60;2 &#x7B97;&#x6570;&#x8FD0;&#x7B97;&#x7B26;: &#x81EA;&#x52A0;, &#x81EA;&#x51CF;</h3>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823112751370.png" alt="image-20210823112751370"></p>
<h3 id="&#x7EC3;&#x4E60;3-&#x4E0E;&#x3001;&#x6216;&#x3001;&#x77ED;&#x8BED;&#x4E0E;&#x548C;&#x77ED;&#x8DEF;&#x6216;">&#x7EC3;&#x4E60;3 &#x4E0E;&#x3001;&#x6216;&#x3001;&#x77ED;&#x8BED;&#x4E0E;&#x548C;&#x77ED;&#x8DEF;&#x6216;</h3>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823120510407.png" alt="image-20210823120510407"></p>
<h3 id="&#x7EC3;&#x4E60;4-&#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;-2&#x6570;&#x8F83;&#x5927;-3&#x6570;&#x8F83;&#x5927;">&#x7EC3;&#x4E60;4 &#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26; 2&#x6570;&#x8F83;&#x5927; 3&#x6570;&#x8F83;&#x5927;</h3>
<p><strong>2&#x6570;&#x8F83;&#x5927;</strong></p>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">OperatorTest2</span> </span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span> <span class="hljs-params">(String[] args)</span></span>{
        <span class="hljs-comment">// &#x83B7;&#x53D6;&#x4E24;&#x4E2A;&#x6570;&#x4E2D;&#x7684;&#x8F83;&#x5927;&#x6570;</span>
        <span class="hljs-keyword">int</span> n1 = <span class="hljs-number">30</span>;
        <span class="hljs-keyword">int</span> n2 = <span class="hljs-number">4</span>;

        <span class="hljs-keyword">int</span> max = (n1 &gt; n2)? n1:n2;

    }
}
<span class="hljs-comment">// &#x7A0B;&#x5E8F;&#x7684;&#x56FA;&#x5B9A;&#x6027;: &#x903B;&#x8F91;&#x662F;&#x56FA;&#x5B9A;&#x7684;</span>
<span class="hljs-comment">// &#x7A0B;&#x5E8F;&#x7684;&#x53D8;&#x5316;&#x6027;: &#x6570;&#x636E;&#x7684;&#x53D8;&#x5316;&#x6027;</span>
</code></pre>
<p><strong>&#x4E09;&#x6570;&#x8F83;&#x5927;</strong></p>
<p>&#x6B64;&#x5904;&#x9700;&#x8981;<a href="#java&#x5982;&#x4F55;&#x5F97;&#x5230;&#x547D;&#x4EE4;&#x884C;&#x53C2;&#x6570;">java&#x5982;&#x4F55;&#x5F97;&#x5230;&#x547D;&#x4EE4;&#x884C;&#x53C2;&#x6570;</a>&#x7684;&#x77E5;&#x8BC6;</p>
<blockquote>
<p>&#x4E24;&#x884C;&#x7248;</p>
</blockquote>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">GetMax</span></span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span></span>{
        <span class="hljs-keyword">int</span> a = Integer.parseInt(args[<span class="hljs-number">0</span>]);
        <span class="hljs-keyword">int</span> b = Integer.parseInt(args[<span class="hljs-number">1</span>]);
        <span class="hljs-keyword">int</span> c = Integer.parseInt(args[<span class="hljs-number">2</span>]);
        <span class="hljs-keyword">int</span> max = a &gt; b ? a : b ;
        max = max &gt; c ? max : c ;
        System.out.println(<span class="hljs-string">&quot;&#x6700;&#x5927;&#x7684;&#x6570;&#x662F;: &quot;</span>+max);
    }
}
</code></pre>
<p>&#x547D;&#x4EE4;&#x884C;</p>
<pre><code class="lang-bash">$ javac GetMax.java
$ java GetMax 111 21 88
<span class="hljs-comment"># out</span>
<span class="hljs-comment"># &#x6700;&#x5927;&#x7684;&#x6570;&#x662F;: 111</span>
</code></pre>
<blockquote>
<p>&#x4E00;&#x884C;&#x7248;</p>
</blockquote>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">GetMax</span></span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span></span>{
        <span class="hljs-keyword">int</span> a = Integer.parseInt(args[<span class="hljs-number">0</span>]);
        <span class="hljs-keyword">int</span> b = Integer.parseInt(args[<span class="hljs-number">1</span>]);
        <span class="hljs-keyword">int</span> c = Integer.parseInt(args[<span class="hljs-number">2</span>]);
        <span class="hljs-keyword">int</span> max = a &gt; b ? a : b &gt; c ? b : c ;
        System.out.println(<span class="hljs-string">&quot;&#x6700;&#x5927;&#x7684;&#x6570;&#x662F;: &quot;</span>+max);
    }
}
</code></pre>
<p>&#x547D;&#x4EE4;&#x884C;</p>
<pre><code class="lang-bash">$ javac GetMax.java
$ java GetMax 111 21 88
<span class="hljs-comment"># out</span>
<span class="hljs-comment"># &#x6700;&#x5927;&#x7684;&#x6570;&#x662F;: 111</span>
</code></pre>
<h3 id="&#x7EC3;&#x4E60;5-if-else-&#x5956;&#x52B1;&#x5C0F;&#x660E;">&#x7EC3;&#x4E60;5 if else &#x5956;&#x52B1;&#x5C0F;&#x660E;</h3>
<blockquote>
<p>&#x4ECE;&#x547D;&#x4EE4;&#x884C;&#x53C2;&#x6570;&#x63A5;&#x6536;&#x5C0F;&#x660E;&#x7684;&#x671F;&#x672B;&#x6210;&#x7EE9;.</p>
<p>&#x5F53;&#x6210;&#x7EE9;&#x4E3A;100&#x5206;&#x65F6;,&#x5956;&#x52B1;&#x4E00;&#x8F86;BMW</p>
<p>&#x5F53;&#x6210;&#x7EE9;&#x4E3A;(80,99]&#x65F6;,&#x5956;&#x52B1;&#x4E00;&#x53F0;iphone12;</p>
<p>&#x5F53;&#x6210;&#x7EE9;&#x4E3A;[60,80]&#x65F6;,&#x5956;&#x52B1;&#x4E00;&#x672C;&#x53C2;&#x8003;&#x4E66;</p>
<p>&#x5176;&#x5B83;&#x65F6;,&#x4EC0;&#x4E48;&#x5956;&#x52B1;&#x4E5F;&#x6CA1;&#x6709;</p>
<p><strong>&#x63D0;&#x793A;: &#x4ECE;&#x547D;&#x4EE4;&#x884C;&#x53C2;&#x6570;&#x83B7;&#x53D6;&#x6574;&#x6570;&#x7684;&#x4EE3;&#x7801;</strong></p>
<p><code>int score = Integer.parseInt(args[0])</code></p>
</blockquote>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">XiaoMing</span></span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span></span>{
        <span class="hljs-keyword">int</span> score = Integer.parseInt(args[<span class="hljs-number">0</span>]);
        <span class="hljs-keyword">if</span> (score == <span class="hljs-number">100</span>){
            System.out.println(<span class="hljs-string">&quot;&#x4F60;&#x83B7;&#x5F97;&#x4E86;&#x4E00;&#x8F86;&#x5B9D;&#x9A6C;&quot;</span>);
        }<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>(score &gt; <span class="hljs-number">80</span> &amp; score &lt;= <span class="hljs-number">99</span> ){
            System.out.println(<span class="hljs-string">&quot;&#x4F60;&#x83B7;&#x5F97;&#x4E86;&#x4E00;&#x53F0;iphone12&quot;</span>);
        }<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>(score &gt;= <span class="hljs-number">60</span> &amp; score &lt;= <span class="hljs-number">80</span>){
            System.out.println(<span class="hljs-string">&quot;&#x4F60;&#x83B7;&#x5F97;&#x4E86;&#x4E00;&#x672C;&#x4E66;&quot;</span>);
        }<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>(score &gt;=<span class="hljs-number">0</span> &amp; score &lt; <span class="hljs-number">60</span>){
            System.out.println(<span class="hljs-string">&quot;&#x4F60;&#x8FD9;&#x6B21;&#x6CA1;&#x6709;&#x83B7;&#x5F97;&#x5956;&#x52B1;,&#x518D;&#x63A5;&#x518D;&#x5389;&quot;</span>);
        }<span class="hljs-keyword">else</span> {
            System.out.println(<span class="hljs-string">&quot;&#x8BF7;&#x786E;&#x4FDD;&#x4F60;&#x7684;&#x6210;&#x7EE9;&#x5728;0-100&#x4E4B;&#x95F4;&quot;</span>);
        }
     }
}
<span class="hljs-comment">// &#x4E0D;&#x8DB3;&#x4E4B;&#x5904;: &#x771F;&#x5B9E;&#x7684;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x4E2D;&#x4E0D;&#x4F1A;&#x7528; &#x5355;&#x4E0E; &#x5355;&#x6216; &#x90FD;&#x662F; &#x53CC;&#x4E0E; &#x53CC;&#x6216;</span>
</code></pre>
<pre><code class="lang-bash">$ javac XiaoMing.java
$ java XiaoMing 99

<span class="hljs-comment"># out </span>
<span class="hljs-comment"># &#x4F60;&#x83B7;&#x5F97;&#x4E86;&#x4E00;&#x53F0;iphone12</span>
</code></pre>
<p><strong>&#x5D4C;&#x5957;&#x7684;&#x4F1A;&#x66F4;&#x597D;</strong></p>
<blockquote>
<p>&#x6709;&#x7684;&#x65F6;&#x5019;&#x5D4C;&#x5957;&#x5728;&#x4E00;&#x8D77;&#x4F1A;&#x66F4;&#x597D;</p>
</blockquote>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">IfExer</span></span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span></span>{
        <span class="hljs-keyword">int</span> score = Integer.parseInt(args[<span class="hljs-number">0</span>]);
        <span class="hljs-keyword">if</span> (score &lt; <span class="hljs-number">0</span> || score &gt; <span class="hljs-number">100</span>){
            System.out.println(<span class="hljs-string">&quot;&#x5206;&#x6570;&#x4E0D;&#x5408;&#x6CD5;&quot;</span>);
        } <span class="hljs-keyword">else</span> {
            <span class="hljs-keyword">if</span>(score == <span class="hljs-number">100</span>){
                System.out.println(<span class="hljs-string">&quot;&#x5956;&#x52B1;&#x4E00;&#x8F86;BMW&quot;</span>);
            } <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (<span class="hljs-number">80</span> &lt; score &amp;&amp; score &lt;=<span class="hljs-number">99</span>){
                System.out.println(<span class="hljs-string">&quot;&#x5956;&#x52B1;iphone12&quot;</span>);
            } <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (score &gt;= <span class="hljs-number">60</span> &amp;&amp; score &lt;= <span class="hljs-number">80</span>){
                System.out.println(<span class="hljs-string">&quot;&#x5956;&#x52B1;&#x4E00;&#x672C;&#x53C2;&#x8003;&#x4E66;&quot;</span>);
            } <span class="hljs-keyword">else</span>{
                System.out.ptintln(<span class="hljs-string">&quot;&#x4EC0;&#x4E48;&#x5956;&#x52B1;&#x4E5F;&#x6CA1;&#x6709;&quot;</span>);
            }
        }
    }
}
</code></pre>
<h3 id="&#x7EC3;&#x4E60;6">&#x7EC3;&#x4E60;6</h3>
<p><img src="DAY03 &#x56DE;&#x5FC6;&#x5F0F;&#x7B14;&#x8BB0;.assets/image-20210823161600703.png" alt="image-20210823161600703"></p>
<h3 id="&#x7EC3;&#x4E60;7-&#x7528;switch&#x6539;&#x5199;if&#x8BED;&#x53E5;">&#x7EC3;&#x4E60;7 &#x7528;switch&#x6539;&#x5199;if&#x8BED;&#x53E5;</h3>
<p><strong>&#x539F;if&#x8BED;&#x53E5;</strong></p>
<pre><code class="lang-java"><span class="hljs-keyword">int</span> a =<span class="hljs-number">3</span>;
<span class="hljs-keyword">int</span> x = <span class="hljs-number">100</span>;
<span class="hljs-keyword">if</span> (a==<span class="hljs-number">1</span>)
    x += <span class="hljs-number">5</span>;
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (a==<span class="hljs-number">2</span>)
    x += <span class="hljs-number">10</span>;
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (a==<span class="hljs-number">3</span>)
    x += <span class="hljs-number">16</span>;
<span class="hljs-keyword">else</span> 
    x += <span class="hljs-number">34</span>;
System.out.print(<span class="hljs-string">&quot;x:&quot;</span>+x)
</code></pre>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">SwitchTest</span> </span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] agrs)</span></span>{
        <span class="hljs-keyword">int</span> x = <span class="hljs-number">3</span>;
        <span class="hljs-keyword">switch</span>(x){
            <span class="hljs-keyword">case</span> <span class="hljs-number">1</span>:
                x += <span class="hljs-number">5</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">case</span> <span class="hljs-number">2</span>:
                x += <span class="hljs-number">10</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">case</span> <span class="hljs-number">3</span>:
                x += <span class="hljs-number">16</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">default</span>:
                x += <span class="hljs-number">34</span>;
                <span class="hljs-keyword">break</span>;
            }
        System.out.println(<span class="hljs-string">&quot;x:&quot;</span>+x);
    }
}
</code></pre>
<h3 id="&#x7EC3;&#x4E60;8-&#x7528;switch&#x4E3A;&#x8F93;&#x5165;&#x7684;&#x6708;&#x4EFD;&#x5224;&#x65AD;&#x5B63;&#x8282;">&#x7EC3;&#x4E60;8 &#x7528;switch&#x4E3A;&#x8F93;&#x5165;&#x7684;&#x6708;&#x4EFD;&#x5224;&#x65AD;&#x5B63;&#x8282;</h3>
<p><strong>&#x65B9;&#x6CD5;&#x4E00;: &#x8001;&#x8001;&#x5B9E;&#x5B9E;&#x578B;</strong></p>
<pre><code class="lang-java"><span class="hljs-comment">// &#x5176;&#x5B9E;&#x53EA;&#x5199;4&#x4E2A;break&#x4E5F;&#x884C;</span>
<span class="hljs-comment">// &#x6700;&#x7EC8;&#x6211;&#x4EEC;&#x53D1;&#x73B0; &#x5176;&#x5B9E;break&#x53EF;&#x4EE5;&#x7528;&#x4E8E;&#x5206;&#x7EC4;</span>
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MonthSeason</span></span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span></span>{
        String month = args[<span class="hljs-number">0</span>];
        String season = <span class="hljs-string">&quot;&#x8BF7;&#x8F93;&#x5165;&#x6B63;&#x786E;&#x7684;&#x6708;&#x4EFD;&quot;</span>;
        <span class="hljs-keyword">switch</span>(month){
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;1&quot;</span>:
                season = <span class="hljs-string">&quot;&#x51AC;&#x5B63;&quot;</span>;
                <span class="hljs-comment">// break;</span>
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;12&quot;</span>:
                season = <span class="hljs-string">&quot;&#x51AC;&#x5B63;&quot;</span>;
                <span class="hljs-comment">// break;</span>
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;2&quot;</span>:
                season = <span class="hljs-string">&quot;&#x51AC;&#x5B63;&quot;</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;3&quot;</span>:
                season = <span class="hljs-string">&quot;&#x6625;&#x5B63;&quot;</span>;
                <span class="hljs-comment">// break;</span>
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;4&quot;</span>:
                season = <span class="hljs-string">&quot;&#x6625;&#x5B63;&quot;</span>;
                <span class="hljs-comment">// break;</span>
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;5&quot;</span>:
                season = <span class="hljs-string">&quot;&#x6625;&#x5B63;&quot;</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;6&quot;</span>:
                season = <span class="hljs-string">&quot;&#x590F;&#x5B63;&quot;</span>;
                <span class="hljs-comment">// break;</span>
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;7&quot;</span>:
                season = <span class="hljs-string">&quot;&#x590F;&#x5B63;&quot;</span>;
                <span class="hljs-comment">// break;</span>
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;8&quot;</span>:
                season = <span class="hljs-string">&quot;&#x590F;&#x5B63;&quot;</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;9&quot;</span>:
                season = <span class="hljs-string">&quot;&#x79CB;&#x5B63;&quot;</span>;
                <span class="hljs-comment">// break;</span>
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;10&quot;</span>:
                season = <span class="hljs-string">&quot;&#x79CB;&#x5B63;&quot;</span>;
                <span class="hljs-comment">// break;</span>
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;11&quot;</span>:
                season = <span class="hljs-string">&quot;&#x79CB;&#x5B63;&quot;</span>;
                <span class="hljs-keyword">break</span>; 
        }
        System.out.println(season);
    }
}
</code></pre>
<p><strong>&#x65B9;&#x6CD5;&#x4E8C;: case &#x7A7F;&#x900F;</strong></p>
<pre><code class="lang-java"><span class="hljs-comment">// &#x5176;&#x5B9E;&#x53EA;&#x5199;4&#x4E2A;break&#x4E5F;&#x884C;</span>
<span class="hljs-comment">// &#x6700;&#x7EC8;&#x6211;&#x4EEC;&#x53D1;&#x73B0; &#x5176;&#x5B9E;break&#x53EF;&#x4EE5;&#x7528;&#x4E8E;&#x5206;&#x7EC4;</span>
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MonthSeason</span></span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span></span>{
        String month = args[<span class="hljs-number">0</span>];
        String season = <span class="hljs-string">&quot;&#x8BF7;&#x8F93;&#x5165;&#x6B63;&#x786E;&#x7684;&#x6708;&#x4EFD;&quot;</span>;
        <span class="hljs-keyword">switch</span>(month){
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;1&quot;</span>:
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;12&quot;</span>:
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;2&quot;</span>:
                season = <span class="hljs-string">&quot;&#x51AC;&#x5B63;&quot;</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;3&quot;</span>:
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;4&quot;</span>:
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;5&quot;</span>:
                season = <span class="hljs-string">&quot;&#x6625;&#x5B63;&quot;</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;6&quot;</span>:
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;7&quot;</span>:
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;8&quot;</span>:
                season = <span class="hljs-string">&quot;&#x590F;&#x5B63;&quot;</span>;
                <span class="hljs-keyword">break</span>;
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;9&quot;</span>:
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;10&quot;</span>:
            <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;11&quot;</span>:
                season = <span class="hljs-string">&quot;&#x79CB;&#x5B63;&quot;</span>;
                <span class="hljs-keyword">break</span>; 
        }
        System.out.println(season);
    }
}<span class="hljs-number">67</span>
</code></pre>
<h2 id="&#x4F5C;&#x4E1A;">&#x4F5C;&#x4E1A;</h2>
<h3 id="&#x4F5C;&#x4E1A;1-&#x5C06;3&#x4E2A;&#x6570;&#x5B57;&#x4ECE;&#x5C0F;&#x5230;&#x5927;&#x6392;&#x5217;">&#x4F5C;&#x4E1A;1 &#x5C06;3&#x4E2A;&#x6570;&#x5B57;&#x4ECE;&#x5C0F;&#x5230;&#x5927;&#x6392;&#x5217;</h3>
<h3 id="&#x4F5C;&#x4E1A;2">&#x4F5C;&#x4E1A;2</h3>
<h3 id="&#x4F5C;&#x4E1A;3">&#x4F5C;&#x4E1A;3</h3>
<h3 id="&#x4F5C;&#x4E1A;4">&#x4F5C;&#x4E1A;4</h3>
<ol>
<li></li>
<li><ol>
<li></li>
</ol>
</li>
<li></li>
</ol>

<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="DAY02 回忆式笔记.html#练习6-正负2进制转10进制数" class="navigation navigation-prev " aria-label="Previous page: 练习6 正负2进制转10进制数">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="DAY03 回忆式笔记.html#内存与变量机制" class="navigation navigation-next " aria-label="Next page: 内存与变量机制">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"DAY03 回忆式笔记","level":"1.4","depth":1,"next":{"title":"内存与变量机制","level":"1.4.1","depth":2,"anchor":"#内存与变量机制","path":"DAY03 回忆式笔记.md","ref":"DAY03 回忆式笔记.md#内存与变量机制","articles":[{"title":"地址编号是什么","level":"1.4.1.1","depth":3,"anchor":"#地址编号是什么","path":"DAY03 回忆式笔记.md","ref":"DAY03 回忆式笔记.md#地址编号是什么","articles":[]},{"title":"变量可以声明在什么位置 有什么区别","level":"1.4.1.2","depth":3,"anchor":"#变量可以声明在什么位置-有什么区别","path":"DAY03 回忆式笔记.md","ref":"DAY03 回忆式笔记.md#变量可以声明在什么位置-有什么区别","articles":[]}]},"previous":{"title":"练习6 正负2进制转10进制数","level":"1.3.6.6","depth":3,"anchor":"#练习6-正负2进制转10进制数","path":"DAY02 回忆式笔记.md","ref":"DAY02 回忆式笔记.md#练习6-正负2进制转10进制数","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","search-pro","expandable-chapters","popup","sharing-plus","pageview-count","splitter","back-to-top-button","code"],"styles":{"website":"style.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"&copy; HeDonghai","modify_label":"文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"fontSettings":{"theme":"white","family":"msyh","size":2},"highlight":{},"theme-api":{"theme":"light"},"back-to-top-button":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"zh","pdf":{"pageNumbers":true,"fontSize":18,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":30,"left":30,"top":30,"bottom":50},"toc":true},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"JavaSE笔记","language":"zh-hans","gitbook":"*","description":"problem solving "},"file":{"path":"DAY03 回忆式笔记.md","mtime":"2021-08-23T12:11:56.600Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-25T14:31:15.821Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

